﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020008D3 RID: 2259
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class HeartDialScriptInfo : IMessage<HeartDialScriptInfo>, IMessage, IEquatable<HeartDialScriptInfo>, IDeepCloneable<HeartDialScriptInfo>, IBufferMessage
	{
		// Token: 0x17001C9A RID: 7322
		// (get) Token: 0x06006555 RID: 25941 RVA: 0x00110287 File Offset: 0x0010E487
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<HeartDialScriptInfo> Parser
		{
			get
			{
				return HeartDialScriptInfo._parser;
			}
		}

		// Token: 0x17001C9B RID: 7323
		// (get) Token: 0x06006556 RID: 25942 RVA: 0x0011028E File Offset: 0x0010E48E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return HeartDialScriptInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17001C9C RID: 7324
		// (get) Token: 0x06006557 RID: 25943 RVA: 0x001102A0 File Offset: 0x0010E4A0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return HeartDialScriptInfo.Descriptor;
			}
		}

		// Token: 0x06006558 RID: 25944 RVA: 0x001102A7 File Offset: 0x0010E4A7
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeartDialScriptInfo()
		{
		}

		// Token: 0x06006559 RID: 25945 RVA: 0x001102B0 File Offset: 0x0010E4B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeartDialScriptInfo(HeartDialScriptInfo other) : this()
		{
			this.pHGIDBALKAH_ = other.pHGIDBALKAH_;
			this.step_ = other.step_;
			this.curEmotionType_ = other.curEmotionType_;
			this.dEDGLPGJIAH_ = other.dEDGLPGJIAH_;
			this.scriptId_ = other.scriptId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600655A RID: 25946 RVA: 0x00110310 File Offset: 0x0010E510
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeartDialScriptInfo Clone()
		{
			return new HeartDialScriptInfo(this);
		}

		// Token: 0x17001C9D RID: 7325
		// (get) Token: 0x0600655B RID: 25947 RVA: 0x00110318 File Offset: 0x0010E518
		// (set) Token: 0x0600655C RID: 25948 RVA: 0x00110320 File Offset: 0x0010E520
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool PHGIDBALKAH
		{
			get
			{
				return this.pHGIDBALKAH_;
			}
			set
			{
				this.pHGIDBALKAH_ = value;
			}
		}

		// Token: 0x17001C9E RID: 7326
		// (get) Token: 0x0600655D RID: 25949 RVA: 0x00110329 File Offset: 0x0010E529
		// (set) Token: 0x0600655E RID: 25950 RVA: 0x00110331 File Offset: 0x0010E531
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeartDialStepType Step
		{
			get
			{
				return this.step_;
			}
			set
			{
				this.step_ = value;
			}
		}

		// Token: 0x17001C9F RID: 7327
		// (get) Token: 0x0600655F RID: 25951 RVA: 0x0011033A File Offset: 0x0010E53A
		// (set) Token: 0x06006560 RID: 25952 RVA: 0x00110342 File Offset: 0x0010E542
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public HeartDialEmotionType CurEmotionType
		{
			get
			{
				return this.curEmotionType_;
			}
			set
			{
				this.curEmotionType_ = value;
			}
		}

		// Token: 0x17001CA0 RID: 7328
		// (get) Token: 0x06006561 RID: 25953 RVA: 0x0011034B File Offset: 0x0010E54B
		// (set) Token: 0x06006562 RID: 25954 RVA: 0x00110353 File Offset: 0x0010E553
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool DEDGLPGJIAH
		{
			get
			{
				return this.dEDGLPGJIAH_;
			}
			set
			{
				this.dEDGLPGJIAH_ = value;
			}
		}

		// Token: 0x17001CA1 RID: 7329
		// (get) Token: 0x06006563 RID: 25955 RVA: 0x0011035C File Offset: 0x0010E55C
		// (set) Token: 0x06006564 RID: 25956 RVA: 0x00110364 File Offset: 0x0010E564
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ScriptId
		{
			get
			{
				return this.scriptId_;
			}
			set
			{
				this.scriptId_ = value;
			}
		}

		// Token: 0x06006565 RID: 25957 RVA: 0x0011036D File Offset: 0x0010E56D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as HeartDialScriptInfo);
		}

		// Token: 0x06006566 RID: 25958 RVA: 0x0011037C File Offset: 0x0010E57C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(HeartDialScriptInfo other)
		{
			return other != null && (other == this || (this.PHGIDBALKAH == other.PHGIDBALKAH && this.Step == other.Step && this.CurEmotionType == other.CurEmotionType && this.DEDGLPGJIAH == other.DEDGLPGJIAH && this.ScriptId == other.ScriptId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06006567 RID: 25959 RVA: 0x001103F8 File Offset: 0x0010E5F8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.PHGIDBALKAH)
			{
				num ^= this.PHGIDBALKAH.GetHashCode();
			}
			if (this.Step != HeartDialStepType.Missing)
			{
				num ^= this.Step.GetHashCode();
			}
			if (this.CurEmotionType != HeartDialEmotionType.Peace)
			{
				num ^= this.CurEmotionType.GetHashCode();
			}
			if (this.DEDGLPGJIAH)
			{
				num ^= this.DEDGLPGJIAH.GetHashCode();
			}
			if (this.ScriptId != 0U)
			{
				num ^= this.ScriptId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06006568 RID: 25960 RVA: 0x001104A8 File Offset: 0x0010E6A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06006569 RID: 25961 RVA: 0x001104B0 File Offset: 0x0010E6B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600656A RID: 25962 RVA: 0x001104BC File Offset: 0x0010E6BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.DEDGLPGJIAH)
			{
				output.WriteRawTag(32);
				output.WriteBool(this.DEDGLPGJIAH);
			}
			if (this.Step != HeartDialStepType.Missing)
			{
				output.WriteRawTag(40);
				output.WriteEnum((int)this.Step);
			}
			if (this.PHGIDBALKAH)
			{
				output.WriteRawTag(72);
				output.WriteBool(this.PHGIDBALKAH);
			}
			if (this.ScriptId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.ScriptId);
			}
			if (this.CurEmotionType != HeartDialEmotionType.Peace)
			{
				output.WriteRawTag(112);
				output.WriteEnum((int)this.CurEmotionType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600656B RID: 25963 RVA: 0x0011056C File Offset: 0x0010E76C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.PHGIDBALKAH)
			{
				num += 2;
			}
			if (this.Step != HeartDialStepType.Missing)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.Step);
			}
			if (this.CurEmotionType != HeartDialEmotionType.Peace)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.CurEmotionType);
			}
			if (this.DEDGLPGJIAH)
			{
				num += 2;
			}
			if (this.ScriptId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ScriptId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600656C RID: 25964 RVA: 0x001105F4 File Offset: 0x0010E7F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(HeartDialScriptInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.PHGIDBALKAH)
			{
				this.PHGIDBALKAH = other.PHGIDBALKAH;
			}
			if (other.Step != HeartDialStepType.Missing)
			{
				this.Step = other.Step;
			}
			if (other.CurEmotionType != HeartDialEmotionType.Peace)
			{
				this.CurEmotionType = other.CurEmotionType;
			}
			if (other.DEDGLPGJIAH)
			{
				this.DEDGLPGJIAH = other.DEDGLPGJIAH;
			}
			if (other.ScriptId != 0U)
			{
				this.ScriptId = other.ScriptId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600656D RID: 25965 RVA: 0x00110680 File Offset: 0x0010E880
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600656E RID: 25966 RVA: 0x0011068C File Offset: 0x0010E88C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 40U)
				{
					if (num == 32U)
					{
						this.DEDGLPGJIAH = input.ReadBool();
						continue;
					}
					if (num == 40U)
					{
						this.Step = (HeartDialStepType)input.ReadEnum();
						continue;
					}
				}
				else
				{
					if (num == 72U)
					{
						this.PHGIDBALKAH = input.ReadBool();
						continue;
					}
					if (num == 96U)
					{
						this.ScriptId = input.ReadUInt32();
						continue;
					}
					if (num == 112U)
					{
						this.CurEmotionType = (HeartDialEmotionType)input.ReadEnum();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040026B6 RID: 9910
		private static readonly MessageParser<HeartDialScriptInfo> _parser = new MessageParser<HeartDialScriptInfo>(() => new HeartDialScriptInfo());

		// Token: 0x040026B7 RID: 9911
		private UnknownFieldSet _unknownFields;

		// Token: 0x040026B8 RID: 9912
		public const int PHGIDBALKAHFieldNumber = 9;

		// Token: 0x040026B9 RID: 9913
		private bool pHGIDBALKAH_;

		// Token: 0x040026BA RID: 9914
		public const int StepFieldNumber = 5;

		// Token: 0x040026BB RID: 9915
		private HeartDialStepType step_;

		// Token: 0x040026BC RID: 9916
		public const int CurEmotionTypeFieldNumber = 14;

		// Token: 0x040026BD RID: 9917
		private HeartDialEmotionType curEmotionType_;

		// Token: 0x040026BE RID: 9918
		public const int DEDGLPGJIAHFieldNumber = 4;

		// Token: 0x040026BF RID: 9919
		private bool dEDGLPGJIAH_;

		// Token: 0x040026C0 RID: 9920
		public const int ScriptIdFieldNumber = 12;

		// Token: 0x040026C1 RID: 9921
		private uint scriptId_;
	}
}
